<?php


if(!defined('ADMIN')){
	exit('Access Denied');
}

$se_arr=array('admin_name'=>'管理员名','mod'=>'模块');
$page = !($_POST['page'])?'1':intval($_POST['page']);
$pagesize=20;
$frmnum=($page-1)*$pagesize;
$q=$_POST['q'];
$sday=$_POST['sday']?strtotime($_POST['sday'].' 00:00:00'):TIME-3600*24*30;
$eday=$_POST['eday']?strtotime($_POST['eday'].' 23:59:59'):TIME;
$se=$_POST['se']?$_POST['se']:'mod';
$total=$ezhand->count(MOD,"`".$se."` like '%$q%'");
$row=$ezhand->select_all(MOD,'*','`'.$se.'` like "%'.$q.'%" and addtime>"'.$sday.'" and addtime<"'.$eday.'" order by id desc limit '.$frmnum.','.$pagesize);
$sday1=date("Y-m-d",$sday);
$eday1=date("Y-m-d",$eday);


?>